﻿
using Kevin.Framework.Data.Query;
namespace QueryColumns
{

    public class Tables
    {

        public static @__QueryColumns.TU_Action_Columns TU_Action = new @__QueryColumns.TU_Action_Columns();

        public static @__QueryColumns.TU_Area_Columns TU_Area = new @__QueryColumns.TU_Area_Columns();

        public static @__QueryColumns.TU_Function_Columns TU_Function = new @__QueryColumns.TU_Function_Columns();

        public static @__QueryColumns.TU_Menus_Columns TU_Menus = new @__QueryColumns.TU_Menus_Columns();

        public static @__QueryColumns.TU_OnlineUser_Columns TU_OnlineUser = new @__QueryColumns.TU_OnlineUser_Columns();

        public static @__QueryColumns.TU_Org_Columns TU_Org = new @__QueryColumns.TU_Org_Columns();

        public static @__QueryColumns.TU_OrgArea_Columns TU_OrgArea = new @__QueryColumns.TU_OrgArea_Columns();

        public static @__QueryColumns.TU_Project_Columns TU_Project = new @__QueryColumns.TU_Project_Columns();

        public static @__QueryColumns.TU_Resource_Columns TU_Resource = new @__QueryColumns.TU_Resource_Columns();

        public static @__QueryColumns.TU_Role_Columns TU_Role = new @__QueryColumns.TU_Role_Columns();

        public static @__QueryColumns.TU_RoleAction_Columns TU_RoleAction = new @__QueryColumns.TU_RoleAction_Columns();

        public static @__QueryColumns.TU_RoleFunction_Columns TU_RoleFunction = new @__QueryColumns.TU_RoleFunction_Columns();

        public static @__QueryColumns.TU_User_Columns TU_User = new @__QueryColumns.TU_User_Columns();

        public static @__QueryColumns.TU_UserArea_Columns TU_UserArea = new @__QueryColumns.TU_UserArea_Columns();

        public static @__QueryColumns.TU_UserOrg_Columns TU_UserOrg = new @__QueryColumns.TU_UserOrg_Columns();

        public static @__QueryColumns.TU_UserRole_Columns TU_UserRole = new @__QueryColumns.TU_UserRole_Columns();
    }
}
namespace @__QueryColumns
{


    public class TU_Action_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_Action";

        private string ___aliasName;

        private static QueryColumn _ID = new QueryColumn((___TABLE_NAME + ".ID"), System.Data.DbType.Int32);

        private static QueryColumn _ActionID = new QueryColumn((___TABLE_NAME + ".ActionID"), System.Data.DbType.AnsiString);

        private static QueryColumn _ActionName = new QueryColumn((___TABLE_NAME + ".ActionName"), System.Data.DbType.AnsiString);

        private static QueryColumn _ActionDesc = new QueryColumn((___TABLE_NAME + ".ActionDesc"), System.Data.DbType.AnsiString);

        public TU_Action_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_Action_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn ID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ID"), System.Data.DbType.Int32);
                }
            }
        }

        public QueryColumn ActionID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ActionID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ActionID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ActionName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ActionName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ActionName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ActionDesc
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ActionDesc;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ActionDesc"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_Action_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_Action_Columns(aliasName);
        }

        public string TableName
        {
            get { throw new System.NotImplementedException(); }
        }

        public string AliasName
        {
            get { throw new System.NotImplementedException(); }
        }
    }

    public class TU_Area_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_Area";

        private string ___aliasName;

        private static QueryColumn _AreaID = new QueryColumn((___TABLE_NAME + ".AreaID"), System.Data.DbType.AnsiString);

        private static QueryColumn _AreaName = new QueryColumn((___TABLE_NAME + ".AreaName"), System.Data.DbType.AnsiString);

        private static QueryColumn _AreaDesc = new QueryColumn((___TABLE_NAME + ".AreaDesc"), System.Data.DbType.AnsiString);

        private static QueryColumn _AreaParent = new QueryColumn((___TABLE_NAME + ".AreaParent"), System.Data.DbType.AnsiString);

        public TU_Area_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_Area_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn AreaID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _AreaID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".AreaID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn AreaName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _AreaName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".AreaName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn AreaDesc
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _AreaDesc;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".AreaDesc"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn AreaParent
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _AreaParent;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".AreaParent"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_Area_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_Area_Columns(aliasName);
        }
    }

    public class TU_Function_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_Function";

        private string ___aliasName;

        private static QueryColumn _FunctionID = new QueryColumn((___TABLE_NAME + ".FunctionID"), System.Data.DbType.Int32);

        private static QueryColumn _FunctionName = new QueryColumn((___TABLE_NAME + ".FunctionName"), System.Data.DbType.AnsiString);

        private static QueryColumn _FunctionDesc = new QueryColumn((___TABLE_NAME + ".FunctionDesc"), System.Data.DbType.AnsiString);

        private static QueryColumn _ProjectID = new QueryColumn((___TABLE_NAME + ".ProjectID"), System.Data.DbType.AnsiString);

        public TU_Function_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_Function_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn FunctionID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _FunctionID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".FunctionID"), System.Data.DbType.Int32);
                }
            }
        }

        public QueryColumn FunctionName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _FunctionName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".FunctionName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn FunctionDesc
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _FunctionDesc;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".FunctionDesc"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ProjectID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ProjectID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ProjectID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_Function_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_Function_Columns(aliasName);
        }
    }

    public class TU_Menus_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_Menus";

        private string ___aliasName;

        private static QueryColumn _ProjectID = new QueryColumn((___TABLE_NAME + ".ProjectID"), System.Data.DbType.AnsiString);

        private static QueryColumn _MenuID = new QueryColumn((___TABLE_NAME + ".MenuID"), System.Data.DbType.AnsiString);

        private static QueryColumn _MenuName = new QueryColumn((___TABLE_NAME + ".MenuName"), System.Data.DbType.AnsiString);

        private static QueryColumn _MenuDesc = new QueryColumn((___TABLE_NAME + ".MenuDesc"), System.Data.DbType.AnsiString);

        private static QueryColumn _MenuLink = new QueryColumn((___TABLE_NAME + ".MenuLink"), System.Data.DbType.AnsiString);

        private static QueryColumn _MenuLevel = new QueryColumn((___TABLE_NAME + ".MenuLevel"), System.Data.DbType.Int32);

        private static QueryColumn _MenuParent = new QueryColumn((___TABLE_NAME + ".MenuParent"), System.Data.DbType.AnsiString);

        private static QueryColumn _MenuIcoUrl = new QueryColumn((___TABLE_NAME + ".MenuIcoUrl"), System.Data.DbType.AnsiString);

        private static QueryColumn _MenuCssName = new QueryColumn((___TABLE_NAME + ".MenuCssName"), System.Data.DbType.AnsiString);

        private static QueryColumn _FunctionID = new QueryColumn((___TABLE_NAME + ".FunctionID"), System.Data.DbType.AnsiString);

        private static QueryColumn _OrderIndex = new QueryColumn((___TABLE_NAME + ".OrderIndex"), System.Data.DbType.Int32);

        public TU_Menus_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_Menus_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn ProjectID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ProjectID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ProjectID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn MenuID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _MenuID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".MenuID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn MenuName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _MenuName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".MenuName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn MenuDesc
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _MenuDesc;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".MenuDesc"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn MenuLink
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _MenuLink;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".MenuLink"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn MenuLevel
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _MenuLevel;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".MenuLevel"), System.Data.DbType.Int32);
                }
            }
        }

        public QueryColumn MenuParent
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _MenuParent;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".MenuParent"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn MenuIcoUrl
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _MenuIcoUrl;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".MenuIcoUrl"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn MenuCssName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _MenuCssName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".MenuCssName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn FunctionID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _FunctionID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".FunctionID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn OrderIndex
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _OrderIndex;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".OrderIndex"), System.Data.DbType.Int32);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_Menus_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_Menus_Columns(aliasName);
        }
    }

    public class TU_OnlineUser_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_OnlineUser";

        private string ___aliasName;

        private static QueryColumn _UserNO = new QueryColumn((___TABLE_NAME + ".UserNO"), System.Data.DbType.AnsiString);

        private static QueryColumn _UserName = new QueryColumn((___TABLE_NAME + ".UserName"), System.Data.DbType.AnsiString);

        private static QueryColumn _LoginTime = new QueryColumn((___TABLE_NAME + ".LoginTime"), System.Data.DbType.DateTime);

        private static QueryColumn _LogoutTime = new QueryColumn((___TABLE_NAME + ".LogoutTime"), System.Data.DbType.DateTime);

        private static QueryColumn _Remark = new QueryColumn((___TABLE_NAME + ".Remark"), System.Data.DbType.AnsiString);

        public TU_OnlineUser_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_OnlineUser_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn UserNO
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserNO;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserNO"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn UserName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn LoginTime
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _LoginTime;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".LoginTime"), System.Data.DbType.DateTime);
                }
            }
        }

        public QueryColumn LogoutTime
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _LogoutTime;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".LogoutTime"), System.Data.DbType.DateTime);
                }
            }
        }

        public QueryColumn Remark
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _Remark;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".Remark"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_OnlineUser_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_OnlineUser_Columns(aliasName);
        }
    }

    public class TU_Org_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_Org";

        private string ___aliasName;

        private static QueryColumn _OrgID = new QueryColumn((___TABLE_NAME + ".OrgID"), System.Data.DbType.AnsiString);

        private static QueryColumn _OrgFullName = new QueryColumn((___TABLE_NAME + ".OrgFullName"), System.Data.DbType.AnsiString);

        private static QueryColumn _OrgShortName = new QueryColumn((___TABLE_NAME + ".OrgShortName"), System.Data.DbType.AnsiString);

        private static QueryColumn _OrgDesc = new QueryColumn((___TABLE_NAME + ".OrgDesc"), System.Data.DbType.AnsiString);

        private static QueryColumn _OrgParent = new QueryColumn((___TABLE_NAME + ".OrgParent"), System.Data.DbType.AnsiString);

        public TU_Org_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_Org_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn OrgID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _OrgID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".OrgID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn OrgFullName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _OrgFullName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".OrgFullName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn OrgShortName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _OrgShortName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".OrgShortName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn OrgDesc
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _OrgDesc;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".OrgDesc"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn OrgParent
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _OrgParent;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".OrgParent"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_Org_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_Org_Columns(aliasName);
        }
    }

    public class TU_OrgArea_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_OrgArea";

        private string ___aliasName;

        private static QueryColumn _ID = new QueryColumn((___TABLE_NAME + ".ID"), System.Data.DbType.Int32);

        private static QueryColumn _OrgID = new QueryColumn((___TABLE_NAME + ".OrgID"), System.Data.DbType.AnsiString);

        private static QueryColumn _AreaID = new QueryColumn((___TABLE_NAME + ".AreaID"), System.Data.DbType.AnsiString);

        public TU_OrgArea_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_OrgArea_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn ID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ID"), System.Data.DbType.Int32);
                }
            }
        }

        public QueryColumn OrgID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _OrgID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".OrgID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn AreaID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _AreaID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".AreaID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_OrgArea_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_OrgArea_Columns(aliasName);
        }
    }

    public class TU_Project_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_Project";

        private string ___aliasName;

        private static QueryColumn _ProjectID = new QueryColumn((___TABLE_NAME + ".ProjectID"), System.Data.DbType.AnsiString);

        private static QueryColumn _ProjectName = new QueryColumn((___TABLE_NAME + ".ProjectName"), System.Data.DbType.AnsiString);

        private static QueryColumn _ProjectDesc = new QueryColumn((___TABLE_NAME + ".ProjectDesc"), System.Data.DbType.AnsiString);

        public TU_Project_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_Project_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn ProjectID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ProjectID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ProjectID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ProjectName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ProjectName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ProjectName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ProjectDesc
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ProjectDesc;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ProjectDesc"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_Project_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_Project_Columns(aliasName);
        }
    }

    public class TU_Resource_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_Resource";

        private string ___aliasName;

        private static QueryColumn _ResourceID = new QueryColumn((___TABLE_NAME + ".ResourceID"), System.Data.DbType.AnsiString);

        private static QueryColumn _ResourceName = new QueryColumn((___TABLE_NAME + ".ResourceName"), System.Data.DbType.AnsiString);

        private static QueryColumn _ResourceDesc = new QueryColumn((___TABLE_NAME + ".ResourceDesc"), System.Data.DbType.AnsiString);

        private static QueryColumn _ProjectID = new QueryColumn((___TABLE_NAME + ".ProjectID"), System.Data.DbType.AnsiString);

        public TU_Resource_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_Resource_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn ResourceID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ResourceID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ResourceID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ResourceName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ResourceName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ResourceName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ResourceDesc
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ResourceDesc;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ResourceDesc"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ProjectID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ProjectID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ProjectID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_Resource_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_Resource_Columns(aliasName);
        }
    }

    public class TU_Role_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_Role";

        private string ___aliasName;

        private static QueryColumn _RoleID = new QueryColumn((___TABLE_NAME + ".RoleID"), System.Data.DbType.AnsiString);

        private static QueryColumn _RoleName = new QueryColumn((___TABLE_NAME + ".RoleName"), System.Data.DbType.AnsiString);

        private static QueryColumn _RoleDesc = new QueryColumn((___TABLE_NAME + ".RoleDesc"), System.Data.DbType.AnsiString);

        private static QueryColumn _ProjectID = new QueryColumn((___TABLE_NAME + ".ProjectID"), System.Data.DbType.AnsiString);

        public TU_Role_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_Role_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn RoleID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _RoleID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".RoleID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn RoleName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _RoleName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".RoleName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn RoleDesc
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _RoleDesc;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".RoleDesc"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ProjectID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ProjectID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ProjectID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_Role_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_Role_Columns(aliasName);
        }
    }

    public class TU_RoleAction_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_RoleAction";

        private string ___aliasName;

        private static QueryColumn _RoleID = new QueryColumn((___TABLE_NAME + ".RoleID"), System.Data.DbType.AnsiString);

        private static QueryColumn _ActionID = new QueryColumn((___TABLE_NAME + ".ActionID"), System.Data.DbType.AnsiString);

        public TU_RoleAction_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_RoleAction_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn RoleID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _RoleID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".RoleID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn ActionID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ActionID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ActionID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_RoleAction_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_RoleAction_Columns(aliasName);
        }
    }

    public class TU_RoleFunction_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_RoleFunction";

        private string ___aliasName;

        private static QueryColumn _ID = new QueryColumn((___TABLE_NAME + ".ID"), System.Data.DbType.Int32);

        private static QueryColumn _RoleID = new QueryColumn((___TABLE_NAME + ".RoleID"), System.Data.DbType.AnsiString);

        private static QueryColumn _FunctionID = new QueryColumn((___TABLE_NAME + ".FunctionID"), System.Data.DbType.AnsiString);

        public TU_RoleFunction_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_RoleFunction_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn ID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _ID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".ID"), System.Data.DbType.Int32);
                }
            }
        }

        public QueryColumn RoleID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _RoleID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".RoleID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn FunctionID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _FunctionID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".FunctionID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_RoleFunction_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_RoleFunction_Columns(aliasName);
        }
    }

    public class TU_User_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_User";

        private string ___aliasName;

        private static QueryColumn _UserID = new QueryColumn((___TABLE_NAME + ".UserID"), System.Data.DbType.Int64);

        private static QueryColumn _UserNO = new QueryColumn((___TABLE_NAME + ".UserNO"), System.Data.DbType.AnsiString);

        private static QueryColumn _UserPwd = new QueryColumn((___TABLE_NAME + ".UserPwd"), System.Data.DbType.AnsiString);

        private static QueryColumn _UserName = new QueryColumn((___TABLE_NAME + ".UserName"), System.Data.DbType.AnsiString);

        private static QueryColumn _UserSex = new QueryColumn((___TABLE_NAME + ".UserSex"), System.Data.DbType.Int32);

        private static QueryColumn _UserPhone = new QueryColumn((___TABLE_NAME + ".UserPhone"), System.Data.DbType.AnsiString);

        private static QueryColumn _UserAddress = new QueryColumn((___TABLE_NAME + ".UserAddress"), System.Data.DbType.AnsiString);

        private static QueryColumn _UserEmail = new QueryColumn((___TABLE_NAME + ".UserEmail"), System.Data.DbType.AnsiString);

        private static QueryColumn _UserState = new QueryColumn((___TABLE_NAME + ".UserState"), System.Data.DbType.Int32);

        public TU_User_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_User_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn UserID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserID"), System.Data.DbType.Int64);
                }
            }
        }

        public QueryColumn UserNO
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserNO;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserNO"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn UserPwd
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserPwd;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserPwd"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn UserName
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserName;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserName"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn UserSex
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserSex;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserSex"), System.Data.DbType.Int32);
                }
            }
        }

        public QueryColumn UserPhone
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserPhone;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserPhone"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn UserAddress
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserAddress;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserAddress"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn UserEmail
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserEmail;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserEmail"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn UserState
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserState;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserState"), System.Data.DbType.Int32);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_User_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_User_Columns(aliasName);
        }
    }

    public class TU_UserArea_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_UserArea";

        private string ___aliasName;

        private static QueryColumn _UserID = new QueryColumn((___TABLE_NAME + ".UserID"), System.Data.DbType.AnsiString);

        private static QueryColumn _AreaID = new QueryColumn((___TABLE_NAME + ".AreaID"), System.Data.DbType.AnsiString);

        public TU_UserArea_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_UserArea_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn UserID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn AreaID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _AreaID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".AreaID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_UserArea_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_UserArea_Columns(aliasName);
        }
    }

    public class TU_UserOrg_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_UserOrg";

        private string ___aliasName;

        private static QueryColumn _UserID = new QueryColumn((___TABLE_NAME + ".UserID"), System.Data.DbType.AnsiString);

        private static QueryColumn _OrgID = new QueryColumn((___TABLE_NAME + ".OrgID"), System.Data.DbType.AnsiString);

        public TU_UserOrg_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_UserOrg_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn UserID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn OrgID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _OrgID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".OrgID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_UserOrg_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_UserOrg_Columns(aliasName);
        }
    }

    public class TU_UserRole_Columns : IQueryTable
    {

        private const string ___TABLE_NAME = "TU_UserRole";

        private string ___aliasName;

        private static QueryColumn _UserID = new QueryColumn((___TABLE_NAME + ".UserID"), System.Data.DbType.AnsiString);

        private static QueryColumn _RoleID = new QueryColumn((___TABLE_NAME + ".RoleID"), System.Data.DbType.AnsiString);

        public TU_UserRole_Columns(string aliasName)
        {
            this.___aliasName = aliasName;
        }

        public TU_UserRole_Columns()
        {
            this.___aliasName = ___TABLE_NAME;
        }

        public QueryColumn UserID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _UserID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".UserID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public QueryColumn RoleID
        {
            get
            {
                if ((this.___aliasName == ___TABLE_NAME))
                {
                    return _RoleID;
                }
                else
                {
                    return new QueryColumn((this.___aliasName + ".RoleID"), System.Data.DbType.AnsiString);
                }
            }
        }

        public string ___GetTableName()
        {
            return ___TABLE_NAME;
        }

        public @__QueryColumns.TU_UserRole_Columns @__Alias(string aliasName)
        {
            return new @__QueryColumns.TU_UserRole_Columns(aliasName);
        }
    }
}
